package com.code.springbootrabbitmq.simple;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/*
 * @author: liyufei
 * @date: 2018-06-01 10:03
 */
@Component
public class MessageConsume {

    @RabbitHandler
    @RabbitListener(queues = "hello")
    public void process(String context) {
        System.out.println("Receiver  : " + context);
    }

}
